from myro import *

def perms(buildPerm, togoString):
    togolen = len(togoString)
    if(togolen == 0):
        print buildPerm
        0
    else:
        for i in range(togolen):
            perms(buildPerm + togoString[i], togoString[0:i] + togoString[i+1:togolen+1])
                
def genPerms():
    inString = raw_input("Please enter the string to generate: ")
    startTime = currentTime()
    perms("", inString)
    endTime = currentTime()
    print "it took ", endTime - startTime, " seconds"
    
